package com.winit.openapi.chinapost.model;

import java.util.List;

public class SubOrder {

	/**
	 * 国际运单号（中邮面单号）
	 */
	private String mailNo;
	
	/**
	 * 邮件种类 1:礼品 2:商品货样 3:文件 4:其他
	 */
	private Long mailType;
	
	/**
	 * 配送的CPCode
	 */
	private String interCarrier;
	
	/**
	 * 交易号(WINIT ORDER ID)
	 */
	private Long tradeId;
	
	/**
	 * 物流订单号
	 */
	private String orderCode;
	
	/**
	 * 小包裹总价格 单位为美分
	 */
	private Long totalItemPrice;
	
	/**
	 * 运送方式0:空运 1:海运 2:陆运
	 */
	private Long shipType;
	
	/**
	 * 重量，单位：克
	 */
	private Long weight;
	
	/**
	 * 上限重量, 单位：克
	 */
	private Long weightLimit;
	
	/**
	 * 说明备注,用来描述内件信息
	 */
	private String remark;
	
	/**
	 * 当邮件不能被投递时的策略：1-丢弃，2-退回
	 */
	private Integer undeliveryOption;
	
	/**
	 * 是否有电池 default:false
	 */
	private Boolean hasBattery;
	
	/**
	 * 扩展字段
	 */
	private String extendFields;
	
	/**
	 * Contact结构体
	 */
	private Contact contact; 
	
	/**
	 * 国际运单号（中邮面单号）
	 */
	private List<Item> items;

	public String getMailNo() {
		return mailNo;
	}

	public void setMailNo(String mailNo) {
		this.mailNo = mailNo;
	}

	public Long getMailType() {
		return mailType;
	}

	public void setMailType(Long mailType) {
		this.mailType = mailType;
	}

	public String getInterCarrier() {
		return interCarrier;
	}

	public void setInterCarrier(String interCarrier) {
		this.interCarrier = interCarrier;
	}

	public Long getTradeId() {
		return tradeId;
	}

	public void setTradeId(Long tradeId) {
		this.tradeId = tradeId;
	}

	public String getOrderCode() {
		return orderCode;
	}

	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}

	public Long getTotalItemPrice() {
		return totalItemPrice;
	}

	public void setTotalItemPrice(Long totalItemPrice) {
		this.totalItemPrice = totalItemPrice;
	}

	public Long getShipType() {
		return shipType;
	}

	public void setShipType(Long shipType) {
		this.shipType = shipType;
	}

	public Long getWeight() {
		return weight;
	}

	public void setWeight(Long weight) {
		this.weight = weight;
	}

	public Long getWeightLimit() {
		return weightLimit;
	}

	public void setWeightLimit(Long weightLimit) {
		this.weightLimit = weightLimit;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getUndeliveryOption() {
		return undeliveryOption;
	}

	public void setUndeliveryOption(Integer undeliveryOption) {
		this.undeliveryOption = undeliveryOption;
	}

	public Boolean getHasBattery() {
		return hasBattery;
	}

	public void setHasBattery(Boolean hasBattery) {
		this.hasBattery = hasBattery;
	}

	public String getExtendFields() {
		return extendFields;
	}

	public void setExtendFields(String extendFields) {
		this.extendFields = extendFields;
	}

	public Contact getContact() {
		return contact;
	}

	public void setContact(Contact contact) {
		this.contact = contact;
	}

	public List<Item> getItems() {
		return items;
	}

	public void setItems(List<Item> items) {
		this.items = items;
	}
	
}
